const fs =require('fs')
require('http').createServer((req,res)=>{
    if(req.url === '/'){
        let data =fs.readFileSync('./home.html')
        res.end(data)
    }else{
        let data =fs.readFileSync('./' + req.url)
        res.end(data)
    }
}).listen(65432)
